only include top ten items django for loop

41

only include top ten items django for loop -

<ul>
    <h3>Positive Tweets :</h3>
    {% for tweet in positiveTweet|slice:":10" %}
      <li>{{ tweet.0 }}</li>
    {% endfor %}
</ul>

Comments

Submit
0 Comments